<template>
  <div class="tm-page-view">
    <dv-border-box-6>
      <div class="box">
        <div class="box-echart">
          <div class="count-resource">
            <video autoplay loop muted class="video">
              <source
                src="@/assets/large-screen-icon/video/gear-model.webm"
                type="video/webm"
              />
            </video>

            <video autoplay muted class="video">
              <source
                src="@/assets/large-screen-icon/video/tree-model.webm"
                type="video/webm"
              />
            </video>
            <video autoplay muted class="video">
              <source
                src-s="@/assets/largecreen-icon/video/flowLight-model.webm"
                type="video/webm"
              />
            </video>
            <div class="pop pop1" id="popcompany" @click="handelPop()">
              <p>
                收费公司
              </p>
            </div>
          </div>
        </div>
      </div>
    </dv-border-box-6>
  </div>
</template>

<script>
export default {
  name: 'TopMid',
  data () {
    return {}
  },
  mounted () {
    const ele = document.querySelector('#popcompany')
    setTimeout(() => {
      ele.style.display = 'block'
    }, 2000)
  },
  methods: {
    handelPop () {
      this.$router.push({
        name: 'ls-index',
        params: { id: 1 }
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.tm-page-view {
  padding: 0.25rem;
  height: 5.65rem;
  .box {
    position: relative;
    height: 100%;
    .box-echart {
      width: 90%;
      height: 3rem;
      margin: 0 auto;
      // margin-top: 1rem;
      .count-resource {
        width: 100%;
        height: 100%;
        .video {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          filter: hue-rotate(202.785deg) saturate(1) brightness(1.7);
        }
      }
    }
  }
  .pop {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    text-align: center;
    line-height: 0.75rem;
    background: url('../../../assets/large-screen-icon/pop.png');
    background-size: 1.5rem 1.5rem;
    position: absolute;
    cursor: pointer;
    p {
      text-align: center;
      white-space: nowrap;
      text-overflow: ellipsis;
      width: 100%;
      overflow: hidden;
      font-family: Microsoft YaHei;
      font-size: 0.25rem;
      color: rgb(255, 191, 62);
      font-weight: bold;
      line-height: 1.125rem;
    }
  }
  .pop1 {
    top: 10%;
    left: 5%;
    cursor: pointer;
    transition: all 0.6s;
    transform: scale(1.2);
  }

  .pop1:hover {
    transform: scale(1.4);
  }

  #popcompany {
    display: none;
  }
}
</style>
